import { Column, Entity, PrimaryGeneratedColumn } from "typeorm";

@Entity("look_project", { schema: "alumni" })
export class LookProject {
  @PrimaryGeneratedColumn({ type: "int", name: "id", unsigned: true })
  id: number;

  @Column("int", { name: "user_id", unsigned: true, default: () => "'0'" })
  userId: number;

  @Column("json", { name: "school_ids", nullable: true, comment: "学校id" })
  schoolIds: number[] | null;

  @Column("varchar", { name: "amount", length: 10 })
  amount: string;

  @Column("json", { name: "industrys", nullable: true, comment: "行业" })
  industrys: number[] | null;


  @Column("int", { name: "times", unsigned: true, default: () => "'0'" })
  times: number;


  @Column("tinyint", { name: "status", unsigned: true, default: () => "'0'" })
  status: number;

  @Column("varchar", { name: "reason", comment: "原因", length: 100 })
  reason: string;

  @Column("int", {
    name: "create_time",
    comment: "发起时间",
    unsigned: true,
    default: () => "'0'",
  })
  createTime: number;
}
